package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"merchantmanager/api/internal/config"
	"merchantmanager/merrpc/merrpcclient"
)

type ServiceContext struct {
	Config config.Config
	MerRpc merrpcclient.Merrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		MerRpc: merrpcclient.NewMerrpc(zrpc.MustNewClient(c.MerRpc)),
	}
}
